
pkgname=libnl
pkgver=3.4.0
_pkgver=3_4_0
pkgrel=1
pkgdesc="Library for applications dealing with netlink sockets"
arch=('x86_64')
url="http://www.infradead.org/~tgr/libnl/"
license=('GPL')
depends=('glibc')
conflicts=('libnl3')
backup=('etc/libnl/classid' 'etc/libnl/pktloc')
options=('!libtool')
source=("https://github.com/thom311/libnl/releases/download/libnl${_pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('b7287637ae71c6db6f89e1422c995f0407ff2fe50cecd61a312b6a9b0921f5bf')

build() {
  cd ${pkgname}-${pkgver}
  
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --sbindir=/usr/bin \
    --disable-static
  make
}

package() {
  cd ${pkgname}-${pkgver}
  
  make DESTDIR=${pkgdir} install
}

